<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <services>
        <defaults public="false" />

        <service id="html_sanitizer.builder" class="HtmlSanitizer\SanitizerBuilder">
            <call method="setLogger">
                <argument type="service" id="logger" on-invalid="null" />
            </call>
            <tag name="monolog.logger" channel="html-sanitizer" />
        </service>

        <service id="html_sanitizer.extension.basic" class="HtmlSanitizer\Extension\Basic\BasicExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.extension.code" class="HtmlSanitizer\Extension\Code\CodeExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.extension.image" class="HtmlSanitizer\Extension\Image\ImageExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.extension.iframe" class="HtmlSanitizer\Extension\Iframe\IframeExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.extension.list" class="HtmlSanitizer\Extension\Listing\ListExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.extension.table" class="HtmlSanitizer\Extension\Table\TableExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.extension.extra" class="HtmlSanitizer\Extension\Extra\ExtraExtension">
            <tag name="html_sanitizer.extension" />
        </service>

        <service id="html_sanitizer.registry" class="Symfony\Component\DependencyInjection\ServiceLocator" />
    </services>
</container>
